import Vue from "vue";

// 引入 vant 插件
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

// 懒加载组件
import { Lazyload } from "vant";
Vue.use(Lazyload, {
  lazyComponent: true,
});

// 分类页滚动插件
import VueScroller from "vue-scroller";
Vue.use(VueScroller);

// 引入 cookie 插件
import Cookies from "js-cookie";
Vue.prototype.$Cookies = Cookies;

// 全局 css默认样式
import "./assets/css/cssInit.css";
// 引入iconfont字体图标
import "./assets/font/iconfont.css";

// 引入 amfe-flexible插件 解决适配问题
import "amfe-flexible";

// axios请求
import netWork from "./network/index.js";
Vue.prototype.$netWork = netWork;

// QQ sdk
import { QC } from "./assets/libs/qc_jssdk.js";
Vue.prototype.$QQ = QC;

import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
